package com.kmb.provider.service;

import com.kmb.commons.dto.Page;
import com.kmb.provider.api.SfKmSourceService;
import com.kmb.provider.domain.SfKmSource;
import com.kmb.provider.mapper.SfKmSourceMapper;
import org.apache.dubbo.config.annotation.Service;

import javax.annotation.Resource;
import java.util.List;

@Service(version = "1.0.0")
public class SfKmSourceServiceImpl implements SfKmSourceService {

    @Resource
    private SfKmSourceMapper sfKmSourceMapper;

    @Override
    public int addMaterials(SfKmSource sfKmSource) {
        return sfKmSourceMapper.insertUseGeneratedKeys(sfKmSource);
    }

    @Override
    public List<SfKmSource> getMaterials(int sourceType, String keyword, boolean allData, Page page) {
        return null;
    }

    @Override
    public int addDowload(int sourceId, String createUser) {
        return 0;
    }
}

